import $http from '@/assets/js/http'

//上传base64
export function uploadimg(imgurl) {
    return $http.post('/api/common/upload/base64',{
       
            base64: imgurl,
      
    });
}

//七牛云上传token
export function getQiniuToken() {
    return $http.get('/api/qiniu/uptoken', {
       
    });
}

//搜索结果列表页
export function getSearchList(keywords,pageIndex,pageSize){
    return $http.post('/app/video/search',{
        keywords:keywords,
        pageIndex:pageIndex,
        pageSize:pageSize
    })
}

//用户协议接口
export function getService(){
    return $http.get('/app/config/xieyi',{
        params:{

        }
    })
}
//获取客服电话
export function getMobile(){
    return $http.get('/app/config/tel',{
        params:{

        }
    })
}